﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Sunboxsoft.WinForm
{
    /// <summary>
    /// 视图继续运行的相关参数
    /// </summary>
    public class ViewResumeArgs
    {
        public ViewClosedArgs ClosedArgs { get; set; }

        public ViewResumeArgs(ViewClosedArgs closedArgs)
        {
            ClosedArgs = closedArgs;
        }

        public class ViewClosedArgs
        {
            public IView View { get; set; }
            public ViewActiveArgs ActiveArgs { get; set; }
            public bool Result { get; set; }
            public object Data { get; set; }

            public ViewClosedArgs(IView view, bool result)
            {
                View = view;
                Result = result;
            }

            public ViewClosedArgs(IView view, bool result, object data)
            {
                View = view;
                Result = result;
                Data = data;
            }

            public ViewClosedArgs(IView view, bool result, object data, ViewActiveArgs activeArgs)
            {
                View = view;
                Result = result;
                Data = data;
                ActiveArgs = activeArgs;
            }
        }
    }
}
